home *** CD-ROM | disk | FTP | other *** search
/ Australian Infopedia 2.0 / Australian Infopedia 2.0.iso / opening / tour2.dir / 00091_Script_91 < prev    next >
Text File  |  1996-06-17  |  969b  |  37 lines

  1. on startMovie
  2.   global pauseSprite
  3.   set pauseSprite = 44
  4.   
  5.   global gPaused, gContinued
  6.   set gPaused = FALSE
  7.   set gContinued = FALSE
  8. end
  9.  
  10. on waitsound whichChannel
  11.   repeat while (soundBusy(whichChannel)) and not (the mouseDown)
  12.     updateStage
  13.   end repeat
  14.   checkPassClick
  15. end waitSound
  16.  
  17. on waitVideo whichSprite
  18.   set the movietime of sprite whichsprite = 0 -- REWIND
  19.   set the movierate of sprite whichsprite = 1 -- START PLAYING
  20.   repeat while (the movieRate of sprite whichSprite > 0) and not (the mouseDown) and not (the movietime of sprite whichSprite >= the duration of cast the castNum of sprite whichSprite)
  21.     updateStage
  22.   end repeat
  23.   checkPassClick
  24. end waitVideo
  25.  
  26. on checkPassClick
  27.   global gPaused, gContinued, PauseSprite
  28.   if gPaused then
  29.     if the clickon = PauseSprite then
  30.       continueDemo
  31.     end if
  32.   else if gContinued then
  33.     if the clickon = PauseSprite then
  34.       pauseDemo
  35.     end if
  36.   end if
  37. end